package InterfaceWay1;

public abstract class Item2 {
	
	public abstract boolean disposable();
	public static void main(String[] args) {
		class LifePotion2 extends Item2{
			public boolean disposable() {
				return true;
			}
		}
		class Weapon2 extends Item2{
			public boolean disposable() {
				return false;
			}
		}
		class Armor2 extends Item2{
			public boolean disposable() {
				return false;
			}
		}
		LifePotion2 h1 = new LifePotion2();
		System.out.println(h1.disposable());
		Weapon2 h2 = new Weapon2();
		System.out.println(h2.disposable());
		Armor2 h3 = new Armor2();
		System.out.println(h3.disposable());
		
		
	}
}
